Searched hist:"3265 e66b1825942c6e0fc457986cdf941a5f7d37" (Results 1 – 1 of 1) sorted by relevance
/linux/init/ |
H A D | initramfs.c | diff 3265e66b1825942c6e0fc457986cdf941a5f7d37 Tue Apr 29 09:59:43 CEST 2008 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> directly use kmalloc() and kfree() in init/initramfs.c
Instead of using the malloc() and free() wrappers needed by the lib/inflate.c code for allocations, simply use kmalloc() and kfree() in the initramfs code. This is needed for a further lib/inflate.c-related cleanup patch that will remove the malloc() and free() functions.
Take that opportunity to remove the useless kmalloc() return value cast.
Based on work done by Matt Mackall.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Matt Mackall <mpm@selenic.com> Cc: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|